

class Order
{
  boolean right = false;
  boolean left = false;
  boolean jump = false;
  boolean up = false;
  boolean down = false;
  boolean kick = false;
  boolean punsh = false;
  boolean change = false;

  public Order clone()
  {
    Order order = new Order();
    order.right = this.right;
    order.left = this.left;
    order.jump = this.jump;
    order.up = this.up;
    order.down = this.down;
    order.kick = this.kick;
    order.punsh = this.punsh;
    order.change = this.change;
    return order;
  }

  boolean movingOrder() {
    if ((this.right) || (this.left) || (this.up) || (this.down) || (this.jump))
    {
      return true;
    }
    return false;
  }
  public boolean newRichtung(Order lastOrder) {
    if ((movingOrder()) && (!lastOrder.movingOrder()))
      return true;
    return false;
  }

  private boolean isNewOrder(Order order) {
    if ((order.right == this.right) && (order.left == this.left) && (order.jump == this.jump) && (order.up == this.up) && (order.down == this.down) && (order.kick == this.kick) && (order.punsh == this.punsh))
    {
      return false;
    }return true;
  }
}